﻿<UserControl x:Class="Acando.Dynamics.CRM.Silverlight.Library.Dialogs.LoginDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    >
    <Grid x:Name="LayoutRoot">
        <Rectangle Name="pnlBackground" 
                   HorizontalAlignment="Stretch" 
                   VerticalAlignment="Stretch" 
                   Fill="White" 
                   Canvas.ZIndex="1"
                   Opacity="0.4" 
                   Visibility="Visible"/>
        <StackPanel Background="AliceBlue" 
                        VerticalAlignment="Center" 
                        HorizontalAlignment="Center"
                        Canvas.ZIndex="2">
            <StackPanel Margin="10">
                <TextBlock Text="Login Screen" Margin="10"/>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition/>
                        <RowDefinition/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="80"/>
                        <ColumnDefinition Width="200"/>
                    </Grid.ColumnDefinitions>
                    
                    
                    <TextBlock Grid.Column="0" Grid.Row="0" Text="Organization" Margin="5"/>
                    <TextBlock Grid.Column="0" Grid.Row="1" Text="Domain" Margin="5"/>
                    <TextBlock Grid.Column="0" Grid.Row="2" Text="Username" Margin="5"/>
                    <TextBlock Grid.Column="0" Grid.Row="3" Text="Password" Margin="5"/>
                    
                    <TextBox Grid.Column="1" Grid.Row="0" x:Name="txtOrg" Text="" Margin="5"/>
                    <TextBox Grid.Column="1" Grid.Row="1" x:Name="txtDomain" Text="" Margin="5"/>
                    <TextBox Grid.Column="1" Grid.Row="2" x:Name="txtUser" Text="" Margin="5"/>
                    <PasswordBox Grid.Column="1" Grid.Row="3" x:Name="txtPwd" Margin="5"/>
                    
                </Grid>
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                    <Button x:Name="btnOk" Click="btnOk_Click" >
                        <TextBlock Text="Ok"></TextBlock>
                    </Button>
                </StackPanel>
            </StackPanel>
        </StackPanel>
    </Grid>
</UserControl>
